NXJOB

Syntax: NXJOB (job_ID, topjob_ID)     
    or: NXJOB (jobname, topjob_ID)
    or: NXJOB (jobnr, jobtag, topjob_ID)
Location: Toolkit II

This function will work downwards through a 'job tree' to find all of the current jobs which are both used by the given 'top job' and those which are used by that second set of jobs. A job tree may look something like this:

              Quill
              /
          QPAC-FILES -- Abacus
            /
        SuperBASIC -- CLOCK
            \
           EDITOR

A job can be referred to either by its name (eg. Quill), its job number and job tag (eg. 1,2) (shown by JOBS), or its  job ID (a number calculated by job_number+65536*job_tag).

Note that the top job ID must not be the job's name or job number and tag.

Example:
PRINT NXJOB('QPAC-FILES',65535)

CROSS-REFERENCE:
PJOB, JOB$, and OJOB also deal with the job tree. 
For jobs in general, see JOBS, RJOB, SPJOB, SJOB, AJOB.
